package com.story.web.utils;

import java.io.IOException;
import java.io.OutputStream;

import com.fasterxml.jackson.databind.ObjectMapper;

public class JsonUtils {
	public static void sentToResponse(OutputStream out,Object value){
		ObjectMapper mapper = new ObjectMapper();
		try {
			mapper.writeValue(out, value);
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
	}
}
